const getSlider = (req, res, next) => {
  const data = new Array(5).fill(null).map((ele, index) => ({
    id: index,
    title: "Slider" + (index + 1),
    imageUrl: `/images/banner${index + 1}.jpg`,
  }));

  res.status(200).json({
    success: true,
    code: 1,
    data,
  });
};

module.exports = { getSlider };
